import request from "@/utils/request";


export function getDictItem(dictId){
  return request({
    url:"/dictRest/details",
    method:'get',
    params:{dictId}
  })
}

export function createDictItem(data){
  return request({
    url:'/dictRest/createItem',
    method:'post',
    data
  })
}

export function removeDictItem(itemId){
  return request({
    url: `/dictRest/removeItem?itemId=${itemId}`,
    method: 'delete',
  })
}
